let code = {
    code1:`
    <mo-button type="success" @click="open1('success')">Success</mo-button>
    <mo-button type="info" @click="open1('info')">Info</mo-button>
    <mo-button type="warning" @click="open1('warning')">Warning</mo-button>
    <mo-button type="error" @click="open1('error')">Error</mo-button>
    <mo-button type="dark" @click="open1('dark')">Dark</mo-button>

    <script>
        import { getCurrentInstance } from 'vue';
        const { proxy } = getCurrentInstance();
        function open1 (value)
        {
            proxy.$MoToast({
                type:value, 
                str:'我是一个提示'
            });
        }
    </script>
    `,
    code2:`
    <mo-button @click="open2('top')">从上面弹出</mo-button>
    <mo-button @click="open2('bottom')">从下面弹出</mo-button>

    <script>
        import { getCurrentInstance } from 'vue';
        const { proxy } = getCurrentInstance();
        function open2 (value)
        {
            proxy.$MoToast({
                type:'success', 
                str:'我是一个提示',
                position:value
            });
        }
    </script>
    `,
    code3:`
    <script>
        import { getCurrentInstance } from 'vue';
        const { proxy } = getCurrentInstance();
        function open1 (value)
        {
            proxy.$MoToast({
                type:'success', 
                str:'我是一个提示',
                position:'top',
                duration:5000
            });
        }
    </script>
    `
};

export default code;